<template>
  <div class="headline">
    <div class="divider">
      <div class="txt">
        <h2 class="title">{{ headline }}</h2>
        <p class="subtitle">{{ underline }}</p>
      </div>
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  headline: {
    type: String,
    default: 'Click Me'
  },
  underline: {
    type: String,
    default: 'Click Me'
  }
})
</script>

<style scoped>
.headline {
margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #fff;
}

.divider {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 20px 0;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background-color: #dcdfe6;
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.txt {
  display: inline-block;
  padding: 0 20px;
  background-color: #fff;
}

.title {
  font-size: 2em;
  color: #000;
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
}

.subtitle {
  color: #919198;
  margin-top: 5px;
  font-size: 1.2em;
  line-height: 1.2;
}
</style>